﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.Generic;
using System.Linq;

namespace PicasaManager
{
    public class GoogleMedia
    {
        public GoogleMedia()
        {
            Contents = new List<GoogleMediaContent>();
            Thumbnails = new List<GoogleMediaThumbnail>();
        }
        public List<GoogleMediaContent> Contents { get; set; }
        public List<GoogleMediaThumbnail> Thumbnails { get; set; }
        public string Credit { get; set; }
        public string Description { get; set; }
        public string DescriptionType { get; set; }
        public string Title { get; set; }
        public string Keywords { get; set; }

        public GoogleMediaThumbnail LargestThumbnail
        {
            get
            {
                return (from t in Thumbnails
                        orderby t.Height * t.Width descending
                        select t).FirstOrDefault();
                       
            }
        }
    }
}

